import React, { Component } from "react";
import { withRouter } from "react-router-dom";
import { observer, inject } from "mobx-react";

@withRouter
@inject("page")
@observer
class Com extends Component {
  constructor() {
    super();
  }
  render() {
    const { data } = this.props.page;
    return (
      <div className="Y_left ym">
        <div>{data.length && data[0].id}</div>
        <div>{data.length && data[1].id}</div>
      </div>
    );
  }
}
export default Com;
